local lo_strutils = require('bblibs.StrUtilsAPI')
-- 是否是开发模式
isDev = false

-- 运行
run_Yes = true;
run_No = false
--

Setting={}

-- 运行方式
Setting.run=false;
Setting.runType=0;
Setting.runTypeZiChan=0;
Setting.runTypeFuZhai=1;
Setting.runTypeGuanQia=2;
Setting.runTypeQuanJu=3;

-- 府宅
Setting.fuzhai_ziyuan=run_No;
Setting.fuzhai_zhengji=run_No;
Setting.fuzhai_hongyan=run_No;
Setting.fuzhai_zishi=run_No;
Setting.fuzhai_xianshi=run_No;
Setting.fuzhai_renwu=run_No;
Setting.fuzhai_chengju=run_No;

-- 府宅 政绩
Setting.fuzhai_zhenJi_type=1;
Setting.fuzhai_zhenJi_ziYuan=0;
Setting.fuzhai_zhenJi_zhenJi=1;

Setting.showUi=function()
    local yesOrNo, results = showUI("ui.json");
    -- 是否运行
    if tostring(yesOrNo)=='1' then
        Setting.run=true
    end

--    -- 运行方式
--    if tostring(results.runType)=='0' then
--        Setting.runType=Setting.runTypeZiChan;
--    end

--    if tostring(results.runType)=='1'then
--        Setting.runType=Setting.runTypeFuZhai;
--    end

--    if tostring(results.runType)=='2' then
--        Setting.runType=Setting.runTypeGuanQia;
--    end

--    if tostring(results.runType)=='3' then
--        Setting.runType=Setting.runTypeQuanJu;
--    end

--    -- 府宅附加
--    if not (string.find(results.fuZhaiFuJia, "0", 0) == nil) then
--        Setting.fuzhai_xianshi=run_Yes;
--    end
--    if not (string.find(results.fuZhaiFuJia, "1", 0) == nil) then
--        Setting.fuzhai_renwu = run_Yes
--    end
--    if not (string.find(results.fuZhaiFuJia, "2", 0) == nil) then
--        Setting.fuzhai_chengju = run_Yes
--    end

--    -- 府宅运行
--    if not (string.find(results.fuZhaiType, "0", 0) == nil) then
--        Setting.fuzhai_ziyuan=run_Yes;
--    end
--    if not (string.find(results.fuZhaiType, "1", 0) == nil) then
--        Setting.fuzhai_zhengji = run_Yes
--    end
--    if not (string.find(results.fuZhaiType, "2", 0) == nil) then
--        Setting.fuzhai_hongyan = run_Yes
--    end
--    if not (string.find(results.fuZhaiType, "3", 0) == nil) then
--        Setting.fuzhai_zishi = run_Yes
--    end

--    -- 府宅政绩
--    if not (string.find(results.fuZhaiZhengJi, "0", 0) == nil) then
--        Setting.fuzhai_zhenJi_type=Setting.fuzhai_zhenJi_ziYuan;
--    end
--    if not (string.find(results.fuZhaiZhengJi, "1", 0) == nil) then
--        Setting.fuzhai_zhenJi_type=Setting.fuzhai_zhenJi_zhenJi;
--    end


end



